﻿@model Seven.DataModel.ViewModels.UserAbout.UserModel

<script src="~/Scripts/views/User/UserForm.js" type="text/javascript"></script>

<form id="User-Form" name="User-Form">
    <div class="div_center">
        <fieldset>
            <legend class="panel-title">用户信息</legend>
            @Html.HiddenFor(m => m.ID)
            <table class="TableBlock">
                <tr>
                    <td class="TableLabel">
                        用户名：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(m => m.UserName)
                    </td>
                    <td class="TableLabel">
                        员工：
                    </td>
                    <td class="TableData">
                        @Html.HiddenFor(m => m.StaffID)
                        @Html.TextBoxFor(m => m.RealName, new { style = "width:110px;" })
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        登录别名：
                    </td>
                    <td class="TableData">
                        @Html.TextBoxFor(m => m.LoginCode)
                    </td>
                    <td class="TableLabel">
                        角色：
                    </td>
                    <td class="TableData">
                        @Html.HiddenFor(m => m.RoleID)
                        @Html.TextBoxFor(m => m.RoleName, new { style = "width:110px;" })
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        密码：
                    </td>
                    <td class="TableData">
                        @Html.PasswordFor(m => m.PassWord)
                    </td>
                    <td class="TableLabel">
                        密码确认：
                    </td>
                    <td class="TableData">
                        @Html.PasswordFor(m => m.PassWordRepeat)
                    </td>
                </tr>
                <tr>
                    <td class="TableLabel">
                        备注：
                    </td>
                    <td class="TableData" colspan="3">
                        @Html.TextAreaFor(m => m.Remark, new { style = "width:95%;" })
                    </td>
                </tr>
            </table>
        </fieldset>
    </div>
</form>

<script>
    $(function () {
        window.views.User.UserForm.initPage("User-Form", "@Model.CompanyID", "@Model.DeptID");
    });
</script>